/*!
 * Timestamp: 1652692493920
 * Build-Time: Mon May 16 2022 11:14:53 GMT+0200 (Central European Summer Time)
 */

function simulateClick(elem) {
	const evt = new MouseEvent('click', {
		bubbles: true,
		cancelable: true,
		view: window,
	});
	const canceled = !elem.dispatchEvent(evt);
}
function closeMenu() {
	simulateClick(document.querySelector('gbw-nav-mobile .burger-icon'));
}
function resize() {
	if (document.querySelector('.nav-is-open') !== null) {
		simulateClick(document.querySelector('gbw-nav-mobile .burger-icon'));
	}
}
let close;
window.addEventListener('resize', () => {
	clearTimeout(close);
	close = setTimeout(resize, 10);
});

const isIOS = () => {
	if (/iPad|iPhone|iPod/.test(navigator.platform)) {
		return true;
	} else {
		return navigator.maxTouchPoints && navigator.maxTouchPoints > 2;
	}
};

const isIpadOS = () => {
	return navigator.maxTouchPoints && navigator.maxTouchPoints > 2;
};
//isIOS() && isIpadOS() ? document.querySelector('body').classList.add('is-ipad') : null;
